/**
 * Author: Dmitry Ustimov
 * Date: 5/31/13
 * Time: 8:13 PM
 */

package com.gmail.dmitryustimov.ms.java7.mediator.classic.work.demo.col10event1;

import java.math.BigDecimal;

public class ConcreteColleague7 extends AbstractColleague {

    private BigDecimal sum = BigDecimal.valueOf(0);

    public ConcreteColleague7(String name, Mediator mediator) {
        super(name, mediator);
    }

    public void makeEvent() {
        mediator.process(new Event1("C7E1"), this);
    }

    @Override
    public void process(Event event, Colleague colleague) {
        sum.add(BigDecimal.valueOf(1));
    }
}

